import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "Floydの导航页",
  description: "Floyd的导航站",
  // base: '/blog',
  themeConfig: {
    logo: '/favicon.ico',
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: '主页', link: '/' },
      { text: 'FloydのBlog', link: 'https://blog.netcpu.top/', target: '_blank' },
      // {
      //   text: '技术学习', items: [
      //     {
      //       text: 'Java', items: [
      //         { text: '多线程', link: '/multi-thread/' }
      //       ]
      //     },
      //     {
      //       text: '前端', items: [
      //         { text: 'Vue', link: '/vue/' },
      //         { text: 'JavaScript', link: '/java-script/' }
      //       ]
      //     },
      //   ]
      // },
      {
        text: '个人网站', items: [
          { text: '节点状态监控', link: 'https://floyd.netcpu.top:8000/', target: '_blank' },
          { text: 'Floydの云盘', link: 'https://floyd.netcpu.top:5245/', target: '_blank' },
        ]
      },
      {
        text: '友情链接', items: [
          { text: '加入星穹旅驿MC互通服', link: 'https://mcmall.netcpu.top/', target: '_blank' },
          { text: '小兔互联，开启云上旅程！', link: 'https://moebun.com/aff/RMYKBTKG', target: '_blank' },
          { text: '小兔导航', link: 'https://moe520.com/', target: '_blank' },
          { text: 'VitePress教程', link: 'https://vitepress.dev/zh/', target: '_blank' },
          // { text: '乐子Wiki', link: 'https://lezi.8aka.org/nav', target: '_blank' },
          // { text: 'ideafox的博客', link: 'https://ideafox.top/', target: '_blank' },
          // { text: 'simple-icons', link: 'https://icon-sets.iconify.design/simple-icons' },
        ]
      },
    ],

    sidebar: {
      '/minecraft/': [{
        text: 'Minecraft',
        items: [
          { text: '如何安装Java', link: '/minecraft/how-to-use-java' }
        ]
      }],
      '/multi-thread': [{
        text: '多线程',
        items: [
          { text: '多线程基础知识', link: '/multi-thread/01_多线程基础知识' },
          { text: 'CompletableFuture', link: '/multi-thread/02_CompletableFuture' },
          { text: '多线程锁相关知识', link: '/multi-thread/03_多线程锁相关知识' },
          { text: '线程中断机制与LockSupport', link: '/multi-thread/04_线程中断机制与LockSupport' },
          { text: 'JMM与volatile', link: '/multi-thread/05_JMM与volatile' },
          { text: 'CAS相关知识', link: '/multi-thread/06_CAS相关知识' },
          { text: '原子类相关知识', link: '/multi-thread/07_原子类相关知识' },
          { text: 'ThreadLocal', link: '/multi-thread/08_ThreadLocal' },
          { text: 'Java对象内存布局和对象头', link: '/multi-thread/09_Java对象内存布局和对象头' },
          { text: 'synchornized锁升级', link: '/multi-thread/10_synchornized锁升级' },
          { text: 'AQS', link: '/multi-thread/11_AQS' },
          { text: 'ReadWriteLock与StampedLock', link: '/multi-thread/12_ReadWriteLock与StampedLock' }
        ]
      }],
      '/examples/': [{
        text: '示例',
        items: [
          { text: 'Markdown Examples', link: '/examples/markdown-examples' },
          { text: 'Runtime API Examples', link: '/examples/api-examples' }
        ]
      }]
    },

    socialLinks: [
      { icon: 'github', link: 'https://github.com/codeNoob2281' },
      { icon: 'bilibili', link: 'https://space.bilibili.com/38375370' },
      { icon: 'qq', link: 'https://wpa.qq.com/msgrd?v=3&uin=2281461058&site=qq&menu=yes' },
      { icon: 'gmail', link: 'mailto:2281461058@qq.com' }
    ]
  },
  cleanUrls: true
})
